<%@page import="dao.impl.ShopCar"%>
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	//设置页面不缓存   
	response.setHeader("Pragma", "No-cache");
	response.setHeader("Cache-Control", "no-cache");
	response.setDateHeader("Expires", 0);
%>

<html>
<head>
<title>查看购物车</title>

<link rel="stylesheet" type="text/css" href="<%=path%>/css/table.css">
<script type="text/javascript" src="<%=path%>/js/jquery.min.js"></script>
<script type="text/javascript" src="<%=path%>/js/jquery.cookie.js"></script>

<style type="text/css">
<!--

tr td{
	text-align: center;
}
-->
</style>


</head>

<body class="bodyClass">
	
	
	<c:if
		test="${empty sessionScope.shopCar or empty sessionScope.shopCar.carBeans}">
		<div align="center">
			您还没有添加商品到购物车&nbsp; <a
				href="${pageContext.request.contextPath}/user/show.jsp">前去购物</a>
		</div>
	</c:if>
	<c:if test="${!empty sessionScope.shopCar.carBeans}">
		<%--style="border: 1px solid blue; border-collapse: collapse;" --%>
		<table id="car" width="900px" align="center" style="border-collapse: collapse;">
			<tr bgcolor="#6699CC" height="30px">
				<td class="tdId" style="width: 60px; ">序列号</td>
				<td class="tdId">商品名称</td>
				<td class="tdId">单价</td>
				<td class="tdId">数量</td>
				<td class="tdId">小计</td>
				<td class="tdId">操作</td>

			</tr>
			
		</table>
	</c:if>

</body>
</html>
